﻿using System;

namespace YXYLCommon
{
    public class DBConvert
    {
        public static string GetTOrF(bool exp)
        {
            return exp ? "√" : "×";
        }
        public static string GetTOrEmpty(bool exp)
        {
            return exp ? "√" : "";
        }
        public static string GetYesOrEmpty(bool exp)
        {
            return exp ? "是" : "";
        }
        public static string GetZeroToEmpty(object o)
        {
            return Convert.ToInt32(o) == 0 ? "" : Convert.ToString(o);
        }
    }
}
